package com.lin.chapter2;


import com.lin.chapter2.contract.Father;
import com.lin.chapter2.contract.Son;

import java.util.HashMap;
import java.util.Map;

public class Client {
	public static void main(String[] args) {
		/*Soldier soldier = new Soldier();
		soldier.setGun(new Rifle());
		soldier.killEnemy();*/

		/*Snipper sanMao = new Snipper();
		sanMao.killEnemy(new AUG());*/

		invoker();
		sonInvoker();
	}

	public static void sonInvoker(){
		Son son = new Son();
		Map map = new HashMap();
		son.doSomeThing(map);
	}

	public static void invoker(){
		Father father = new Father();
		HashMap map = new HashMap();
		father.doSomeThing(map);
	}
}
